package com.xmkj.bearuser.jifen;

import android.content.Context;

import com.common.Entity.JingPaiEntity;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearuser.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/5/21
 * 描述：
 */

public class ChuJiaRecordAdapter extends CommonAdapter<JingPaiEntity.AuctionInfoEntity> {
    public ChuJiaRecordAdapter(Context context, List<JingPaiEntity.AuctionInfoEntity> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, JingPaiEntity.AuctionInfoEntity item, int position) {
            holder.setImageAvatar(R.id.iv_img,item.face);
            holder.setText(R.id.tv_name,item.nickname);
            holder.setText(R.id.tv_address,item.user_address);
            holder.setText(R.id.tv_price,item.add_money);
    }

    @Override
    protected int getItemViewLayoutId(int position, JingPaiEntity.AuctionInfoEntity item) {
        return R.layout.item_chujia_records;
    }
}
